package com.yimi.yinhepda.entity;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 项目名称：YinHePda
 * 创建时间：2017/3/1 9:45
 * 版本号：1.0
 * 功能描述 装车任务实体
 *
 * @author 刘宏恩
 */
public class LoadTaskEntity implements Serializable {
    private String task;
    /**
     * 配载单号
     */
    private String carCode;
    /**
     * 车标号
     */
    private String carMark;
    private String srcDeptCode;
    private String srcDeptName;
    private String nextStation;
    private String nextStationCode;
    private String carNo;
    private String priceNum;
    /**
     * 运输方式：1-trunk_line干线,2-branch_line支线,3-car_load:整车
     */
    private int bizTypeCode;
    private boolean isChecked;
    /**
     * 预计发车时间
     */
    private String preStartDate;
    /**
     * 限载重量
     */
    private BigDecimal loadingLimit;
    /**
     * 限载体积
     */
    private BigDecimal loadingProduct;
    /**
     * 车型
     */
    private String carModel;
    /**
     * 任务类型：1-跨越虚拟网点任务
     */
    private int taskType;

    public LoadTaskEntity(String task, String carCode, String carMark, String srcDeptCode, String srcDeptName,
                          String nextStation, String nextStationCode, String carNo, String priceNum, int bizTypeCode,
                          boolean isChecked, String preStartDate, BigDecimal loadingLimit, BigDecimal loadingProduct,
                          String carModel, int taskType) {
        this.task = task;
        this.carCode = carCode;
        this.carMark = carMark;
        this.srcDeptCode = srcDeptCode;
        this.srcDeptName = srcDeptName;
        this.nextStation = nextStation;
        this.nextStationCode = nextStationCode;
        this.carNo = carNo;
        this.priceNum = priceNum;
        this.isChecked = isChecked;
        this.bizTypeCode = bizTypeCode;
        this.preStartDate = preStartDate;
        this.loadingLimit = loadingLimit;
        this.loadingProduct = loadingProduct;
        this.carModel = carModel;
        this.taskType = taskType;
    }

    public LoadTaskEntity() {
    }

    public int getTaskType() {
        return taskType;
    }

    public void setTaskType(int taskType) {
        this.taskType = taskType;
    }

    public String getCarModel() {
        return carModel;
    }

    public void setCarModel(String carModel) {
        this.carModel = carModel;
    }

    public String getCarMark() {
        return carMark;
    }

    public void setCarMark(String carMark) {
        this.carMark = carMark;
    }

    public BigDecimal getLoadingLimit() {
        if (loadingLimit == null) {
            loadingLimit = BigDecimal.ZERO;
        }
        return loadingLimit;
    }

    public void setLoadingLimit(BigDecimal loadingLimit) {
        this.loadingLimit = loadingLimit;
    }

    public BigDecimal getLoadingProduct() {
        return loadingProduct;
    }

    public void setLoadingProduct(BigDecimal loadingProduct) {
        this.loadingProduct = loadingProduct;
    }

    public String getPreStartDate() {
        return preStartDate;
    }

    public void setPreStartDate(String preStartDate) {
        this.preStartDate = preStartDate;
    }

    public int getBizTypeCode() {
        return bizTypeCode;
    }

    public void setBizTypeCode(int bizTypeCode) {
        this.bizTypeCode = bizTypeCode;
    }

    public String getSrcDeptCode() {
        return srcDeptCode;
    }

    public void setSrcDeptCode(String srcDeptCode) {
        this.srcDeptCode = srcDeptCode;
    }

    public String getSrcDeptName() {
        return srcDeptName;
    }

    public void setSrcDeptName(String srcDeptName) {
        this.srcDeptName = srcDeptName;
    }

    public String getNextStationCode() {
        return nextStationCode;
    }

    public void setNextStationCode(String nextStationCode) {
        this.nextStationCode = nextStationCode;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getCarCode() {
        return carCode;
    }

    public void setCarCode(String carCode) {
        this.carCode = carCode;
    }

    public String getNextStation() {
        if (nextStation == null) {
            nextStation = "";
        }
        return nextStation;
    }

    public void setNextStation(String nextStation) {
        this.nextStation = nextStation;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo;
    }

    public String getPriceNum() {
        return priceNum;
    }

    public void setPriceNum(String priceNum) {
        this.priceNum = priceNum;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }
}
